package com.openbravo.pos.inventory;

import com.openbravo.basic.BasicException;
import com.openbravo.data.user.EditorRecord;
import com.openbravo.data.user.ListProvider;
import com.openbravo.data.user.SaveProvider;
import com.openbravo.pos.forms.AppLocal;
import com.openbravo.pos.forms.AppView;
import com.openbravo.pos.forms.DataLogicSales;
import com.openbravo.pos.panels.JPanelTable;

public class StockDiaryPanel extends JPanelTable
{
  private StockDiaryEditor jeditor;
  private DataLogicSales m_dlSales;

  protected void init()
  {
    this.m_dlSales = ((DataLogicSales)this.app.getBean("com.openbravo.pos.forms.DataLogicSales"));
    this.jeditor = new StockDiaryEditor(this.app, this.dirty);
  }

  public ListProvider getListProvider()
  {
    return null;
  }

  public SaveProvider getSaveProvider()
  {
    return new SaveProvider(null, this.m_dlSales.getStockDiaryInsert(), this.m_dlSales.getStockDiaryDelete());
  }

  public EditorRecord getEditor()
  {
    return this.jeditor;
  }

  public String getTitle()
  {
    return AppLocal.getIntString("Menu.StockDiary");
  }

  public void activate()
    throws BasicException
  {
    this.jeditor.activate();
    super.activate();
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.inventory.StockDiaryPanel
 * JD-Core Version:    0.6.0
 */